﻿using System;

namespace Variables
{
    class Program
    {
        static void Main(string[] args)
        {
            var i = 85; //type of i is int, because literal 85 is of type int in C#
            var r = 85.0; //type of r is double, because literal 85.0 is of type double in C#

            int a; //declaration
            a = 1; //assignment

            int b = 2; //declaration and assignment

            int c = b; //assignment

            c = c + 1; //assignment

            double x = 2.0;
            x = 2; //literal 2 of type int casts (converts) to double;

            // int y = 3.0; // implicit cast is impossible

            int maxInt = int.MaxValue; //The maximum value of the int type assigned to maxInt variable

            double minDouble = double.MinValue; //The minimum value of the double type assigned to minDouble variable

        }
    }
}
